Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): multi bucket list api #5576

Merged
merged 48 commits into from
Nov 4, 2024

Conversation

ekjotmultani
Copy link
Member

@ekjotmultani ekjotmultani commented Oct 18, 2024

Issue #, if available:

Description of changes:

added storage bucket option to the options type for the list api
added integration tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

ekjotmultani and others added 18 commits September 17, 2024 10:35
feat(core): update storage outputs class for multi-bucket support
merging changes from main that unblock some tests
@ekjotmultani ekjotmultani marked this pull request as ready for review October 21, 2024 19:02
@ekjotmultani ekjotmultani requested a review from a team as a code owner October 21, 2024 19:02
@ekjotmultani ekjotmultani changed the title Feat/multi bucket list api feat(storage): multi bucket list api Oct 21, 2024
@NikaHsn NikaHsn force-pushed the multi-bucket branch 2 times, most recently from 3eafd51 to a2d5efb Compare October 23, 2024 17:42
Comment on lines 36 to 57
for (var pathIndex = 0;
pathIndex < uploadedPaths.length ~/ 2;
pathIndex++) {
await Amplify.Storage.uploadData(
path: StoragePath.fromString(path),
path: StoragePath.fromString(uploadedPaths[pathIndex]),
data: StorageDataPayload.bytes('test content'.codeUnits),
bucket: mainBucket,
).result;
}
for (var pathIndex = uploadedPaths.length ~/ 2;
pathIndex < uploadedPaths.length;
pathIndex++) {
await Amplify.Storage.uploadData(
path: StoragePath.fromString(uploadedPaths[pathIndex]),
data: StorageDataPayload.bytes('test content'.codeUnits),
bucket: secondaryBucket,
).result;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: why break up the uploads?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are uploading to different buckets, I can put them in the same loop but I think two calls to upload will be required

ekjotmultani and others added 18 commits November 4, 2024 13:02
…5567)

* fix(api): Reconnect WebSocket when resuming app from a paused state
chore(version): Bump version

### Features
- feat(api): move App Sync subscription headers to protocol ([#5301](#5301))
- feat(authenticator): export unmet password requirements ([#5437](#5437))

### Fixes
- fix(api): Reconnect WebSocket when resuming app from a paused state ([#5567](#5567))

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
@ekjotmultani ekjotmultani merged commit 1b43cc4 into multi-bucket Nov 4, 2024
154 of 155 checks passed
@ekjotmultani ekjotmultani deleted the feat/multi-bucket-list-api branch November 13, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants